/**
 * 
 */
package slhs.tempo.pivotTableUtilities;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JPanel;

import org.openswing.swing.wizard.client.WizardInnerPanel;

import slhs.tempo.scriptGenerator.UtilityConstants;

/**
 * PivotWizardPostAnalysisFilterPanel.java
 * 
 * @author Swapnil Devikar
 * 
 */
public class PivotWizardPostAnalysisFilterPanel extends WizardInnerPanel implements ActionListener {

    public static final String SCREEN_ID = "FOURTH";
    private JPanel postAnalysisFilterPanel;
    private PivotWizardPostAnalysisFilterPanelHandler pivotWizardPostAnalysisFilterPanelHandler;

    /**
     * @param overallAnalysisSelected
     */
    public PivotWizardPostAnalysisFilterPanel() {
	pivotWizardPostAnalysisFilterPanelHandler = PivotWizardPostAnalysisFilterPanelHandler.getInstance();
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    @Override
    public void actionPerformed(ActionEvent arg0) {
	// TODO Auto-generated method stub

    }

    /**
     * 
     */
    private void addComponents() {
	this.add(postAnalysisFilterPanel);
    }

    /**
     * 
     */
    private void initComponents() {
	postAnalysisFilterPanel = pivotWizardPostAnalysisFilterPanelHandler.getPanel();
    }

    @Override
    public void init() {
	initComponents();
	addComponents();

    }

    @Override
    public String getPanelId() {
	return SCREEN_ID;
    }

    @Override
    public String getImageName() {
	return "setup2.gif";
    }

    public boolean isOverallAnalysis() {
	return UtilityConstants.IS_OVERALL_ANALYSIS;
    }

    public String getIgnoreNAboveMeanTime() {
	return pivotWizardPostAnalysisFilterPanelHandler.getIgnoreNAboveMeanTime();
    }

    public String getIgnoreNBelowMeanTime() {
	return pivotWizardPostAnalysisFilterPanelHandler.getIgnoreNBelowMeanTime();
    }

    public String getIgnoreNTimesAboveStandardDeviation() {
	return pivotWizardPostAnalysisFilterPanelHandler.getIgnoreNTimesAboveStandardDeviation();
    }

    public String getIgnoreNTimesBelowStandardDeviation() {
	return pivotWizardPostAnalysisFilterPanelHandler.getIgnoreNTimesBelowStandardDeviation();
    }

    public String getIgnoreNTimesAboveZScore() {
	return pivotWizardPostAnalysisFilterPanelHandler.getIgnoreNTimesAboveZScore();
    }

    public String getIgnoreNTimesBelowZScore() {
	return pivotWizardPostAnalysisFilterPanelHandler.getIgnoreNTimesBelowZScore();
    }
}
